package com.sneaker.shower.mapstruct;

import com.sneaker.shower.entity.domain.menu.ProductDO;
import com.sneaker.shower.entity.dto.ProductDTO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;
import org.springframework.stereotype.Component;

import java.util.List;

@Component
@Mapper(componentModel = "spring")
public interface ProductMapStruct {

    ProductMapStruct INSTANCE = Mappers.getMapper(ProductMapStruct.class);

    ProductDTO do2DTO(ProductDO productDO);

    List<ProductDTO> doList2DTOList(List<ProductDO> productDOList);

    ProductDO dto2DO(ProductDTO productDTO);

    List<ProductDO> dtoList2DO(List<ProductDTO> productDTOList);

}
